//
//  FastFetch+NSManagedObjectContext.h
//  iMAL
//
//  Created by Stefano Pigozzi on 1/31/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

@interface NSManagedObjectContext (FastFetch)

// Convenience method to fetch an Anime from its anime_id field, if no anime is found
// then one is created for you.
//
- (NSManagedObject *) fetchOrCreateAnimeWithId:(int)value;

- (NSManagedObject *) fetchAnimeWithImage:(NSString *) image;
// Convenience method to fetch the array of objects for a given Entity
// name in the context, optionally limiting by a predicate or by a predicate
// made from a format NSString and variable arguments.
//
- (NSSet *)fetchObjectsForEntityName:(NSString *)newEntityName
					   withPredicate:(id)stringOrPredicate, ...;

@end
